<?php

namespace app\admin\controller;

use think\Controller;
use think\facade\Session;
use think\Request;

class BaseClass extends Controller
{
    public function __construct()
    {
        if(!Session::has('name')){
            $this->redirect('admin/login/login');
        }
    }
}
